package GA.Visao;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.ToggleButton;

public class MainActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        TextView tela = new TextView(this);
        tela.setText("Hello, World!!!");
        setContentView(tela);
        
        ToggleButton buttonLogin = new ToggleButton(this, null);
        buttonLogin.setText("Login");
        buttonLogin.setHeight(10);
        //setContentView(buttonLogin);
        buttonLogin.setVisibility(1);
        setContentView(buttonLogin);
        //soma();
    }
    
    public void soma () {
        int a = 2, b = 3;
        int c = a+b;
        TextView tela = new TextView(this);
        tela.setText("Resultado: " + c);
        setContentView(tela);
    }
}



